﻿using MyCode.Project.Infrastructure.Constant;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Businesses.Sms.Templates
{
    /// <summary>
    /// 短信-服务完成模板 亲爱的顾客，您在本店享受了【{s100}】服务,剩余服务【{s100}】，详情请打开小程序查看；小程序链接 {s50}
    /// </summary>
    public class SmsServiceFinishTemplate : SmsTemplateBase
    {        

        public string CouponName { get; set; }


        /// <summary>
        /// 享受了【{s100}】服务
        /// </summary>
        public string ServiceString { get; set; }

        /// <summary>
        /// 剩余服务【{s100}】
        /// </summary>
        public string RemainingService { get; set; }

        /// <summary>
        /// 小程序链接 {s50}
        /// </summary>
        public string AppHtml { get; set; } =  WechatConfigConst.AppHtml;//"【BINF流行美】"

        /// <summary>
        /// 初始化一个<see cref="SmsServiceFinishTemplate"/>类型的实例
        /// </summary>
        public SmsServiceFinishTemplate() : base(SmsTemplateConfigConst.ServiceFinish)
        {
        }

        /// <summary>
        /// 初始化参数值
        /// </summary>
        protected override void InitParamValue()
        {            
            Add(LxmConst.SmsTemplate.ServiceString, ServiceString);
            Add(LxmConst.SmsTemplate.RemainingService, RemainingService);
            Add(LxmConst.SmsTemplate.AppHtml, AppHtml);
        }
    }
}
